package com.feicheng.lanniao.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import com.feicheng.lanniao.result.ResultInfo;
import com.feicheng.lanniao.service.ISysvoService;

/**
 * <p>
 * VIEW 前端控制器
 * </p>
 *
 * @author feichengTech
 * @since 2021-09-25
 */
@RestController
@RequestMapping("/lanniao-admin/sysvo")
public class SysvoController {

	@Autowired
	private ISysvoService iSysvoService; 
	/**
	 * 通过id查具体对应的省市区
	 * @param provienceId 省id
	 * @param cityId 市id
	 * @param reignId 区id
	 * @return 返回省市区对象
	 */
	@GetMapping("/info")
	public ResultInfo getInfo(Integer provienceId,Integer cityId,Integer reignId) {
		return iSysvoService.getInfo(provienceId,cityId,reignId);
	}
}

